@designbasekorea/ui-wc 0.8.13 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE-PAYMENT-LOGOS.md +437 -0
  3. package/README.md +67 -3
  4. package/dist/esm/components/date-picker-utils.js +1 -1
  5. package/dist/esm/components/db-accordion.js +1 -1
  6. package/dist/esm/components/db-achievement-list.d.ts +31 -0
  7. package/dist/esm/components/db-achievement-list.js +1 -0
  8. package/dist/esm/components/db-achievement-modal.d.ts +38 -0
  9. package/dist/esm/components/db-achievement-modal.js +1 -0
  10. package/dist/esm/components/db-activity-heatmap.js +1 -1
  11. package/dist/esm/components/db-ad-banner.js +1 -1
  12. package/dist/esm/components/db-ai-chain-of-thought.d.ts +14 -0
  13. package/dist/esm/components/db-ai-chain-of-thought.js +1 -0
  14. package/dist/esm/components/db-ai-chat.js +1 -1
  15. package/dist/esm/components/db-ai-checkpoint.d.ts +14 -0
  16. package/dist/esm/components/db-ai-checkpoint.js +1 -0
  17. package/dist/esm/components/db-ai-confirmation.d.ts +14 -0
  18. package/dist/esm/components/db-ai-confirmation.js +1 -0
  19. package/dist/esm/components/db-ai-context.d.ts +15 -0
  20. package/dist/esm/components/db-ai-context.js +1 -0
  21. package/dist/esm/components/db-ai-conversation.d.ts +21 -0
  22. package/dist/esm/components/db-ai-conversation.js +1 -0
  23. package/dist/esm/components/db-ai-execution-quote.d.ts +41 -0
  24. package/dist/esm/components/db-ai-execution-quote.js +1 -0
  25. package/dist/esm/components/db-ai-file-tree.d.ts +14 -0
  26. package/dist/esm/components/db-ai-file-tree.js +1 -0
  27. package/dist/esm/components/db-ai-glow.d.ts +1 -1
  28. package/dist/esm/components/db-ai-inline-citation.d.ts +16 -0
  29. package/dist/esm/components/db-ai-inline-citation.js +1 -0
  30. package/dist/esm/components/db-ai-message.d.ts +19 -0
  31. package/dist/esm/components/db-ai-message.js +1 -0
  32. package/dist/esm/components/db-ai-model-select.d.ts +36 -0
  33. package/dist/esm/components/db-ai-model-select.js +1 -0
  34. package/dist/esm/components/db-ai-plan.d.ts +14 -0
  35. package/dist/esm/components/db-ai-plan.js +1 -0
  36. package/dist/esm/components/db-ai-queue.d.ts +14 -0
  37. package/dist/esm/components/db-ai-queue.js +1 -0
  38. package/dist/esm/components/db-ai-reasoning.d.ts +14 -0
  39. package/dist/esm/components/db-ai-reasoning.js +1 -0
  40. package/dist/esm/components/db-ai-sources.d.ts +14 -0
  41. package/dist/esm/components/db-ai-sources.js +1 -0
  42. package/dist/esm/components/db-ai-stack-trace.d.ts +14 -0
  43. package/dist/esm/components/db-ai-stack-trace.js +1 -0
  44. package/dist/esm/components/db-ai-subagent.d.ts +14 -0
  45. package/dist/esm/components/db-ai-subagent.js +1 -0
  46. package/dist/esm/components/db-ai-task-status.d.ts +26 -0
  47. package/dist/esm/components/db-ai-task-status.js +1 -0
  48. package/dist/esm/components/db-ai-task.d.ts +14 -0
  49. package/dist/esm/components/db-ai-task.js +1 -0
  50. package/dist/esm/components/db-ai-terminal.d.ts +14 -0
  51. package/dist/esm/components/db-ai-terminal.js +1 -0
  52. package/dist/esm/components/db-ai-test-results.d.ts +14 -0
  53. package/dist/esm/components/db-ai-test-results.js +1 -0
  54. package/dist/esm/components/db-ai-tool.d.ts +14 -0
  55. package/dist/esm/components/db-ai-tool.js +1 -0
  56. package/dist/esm/components/db-alert.js +1 -1
  57. package/dist/esm/components/db-app-badge.js +1 -1
  58. package/dist/esm/components/db-attachment-list.d.ts +38 -0
  59. package/dist/esm/components/db-attachment-list.js +1 -0
  60. package/dist/esm/components/db-audio-player.js +1 -1
  61. package/dist/esm/components/db-bento-card.d.ts +55 -0
  62. package/dist/esm/components/db-bento-card.js +1 -0
  63. package/dist/esm/components/db-bento-grid.d.ts +25 -0
  64. package/dist/esm/components/db-bento-grid.js +1 -0
  65. package/dist/esm/components/db-boarding-pass-stack.d.ts +49 -0
  66. package/dist/esm/components/db-boarding-pass-stack.js +1 -0
  67. package/dist/esm/components/db-boarding-pass.d.ts +32 -0
  68. package/dist/esm/components/db-boarding-pass.js +1 -0
  69. package/dist/esm/components/db-border-beam.d.ts +52 -0
  70. package/dist/esm/components/db-border-beam.js +1 -0
  71. package/dist/esm/components/db-bottom-navigation.js +1 -1
  72. package/dist/esm/components/db-bottom-sheet.js +1 -1
  73. package/dist/esm/components/db-breadcrumbs.js +1 -1
  74. package/dist/esm/components/db-button.d.ts +1 -1
  75. package/dist/esm/components/db-button.js +1 -1
  76. package/dist/esm/components/db-calendar.js +1 -1
  77. package/dist/esm/components/db-card.js +1 -1
  78. package/dist/esm/components/db-carousel.d.ts +3 -3
  79. package/dist/esm/components/db-carousel.js +1 -1
  80. package/dist/esm/components/db-chat-composer.d.ts +2 -0
  81. package/dist/esm/components/db-chat-composer.js +1 -1
  82. package/dist/esm/components/db-chat-message.d.ts +1 -1
  83. package/dist/esm/components/db-chat-orb.d.ts +1 -1
  84. package/dist/esm/components/db-chat-room.js +1 -1
  85. package/dist/esm/components/db-chat-widget.d.ts +1 -1
  86. package/dist/esm/components/db-chat-widget.js +1 -1
  87. package/dist/esm/components/db-chip.js +1 -1
  88. package/dist/esm/components/db-code-block.js +1 -1
  89. package/dist/esm/components/db-color-picker.d.ts +1 -0
  90. package/dist/esm/components/db-color-picker.js +1 -1
  91. package/dist/esm/components/db-confetti.d.ts +90 -0
  92. package/dist/esm/components/db-confetti.js +1 -0
  93. package/dist/esm/components/db-context-bar.d.ts +13 -0
  94. package/dist/esm/components/db-context-bar.js +1 -0
  95. package/dist/esm/components/db-credit-balance.d.ts +17 -0
  96. package/dist/esm/components/db-credit-balance.js +1 -0
  97. package/dist/esm/components/db-credit-card.d.ts +51 -0
  98. package/dist/esm/components/db-credit-card.js +1 -0
  99. package/dist/esm/components/db-credit-dropdown.d.ts +31 -0
  100. package/dist/esm/components/db-credit-dropdown.js +1 -0
  101. package/dist/esm/components/db-credit-history.d.ts +31 -0
  102. package/dist/esm/components/db-credit-history.js +1 -0
  103. package/dist/esm/components/db-credit-recharge-modal.d.ts +35 -0
  104. package/dist/esm/components/db-credit-recharge-modal.js +1 -0
  105. package/dist/esm/components/db-credit-recharge.d.ts +39 -0
  106. package/dist/esm/components/db-credit-recharge.js +1 -0
  107. package/dist/esm/components/db-date-picker.js +1 -1
  108. package/dist/esm/components/db-design-canvas.d.ts +137 -0
  109. package/dist/esm/components/db-design-canvas.js +1 -0
  110. package/dist/esm/components/db-design-toolbar.d.ts +60 -0
  111. package/dist/esm/components/db-design-toolbar.js +1 -0
  112. package/dist/esm/components/db-device-mockup.d.ts +100 -0
  113. package/dist/esm/components/db-device-mockup.js +1 -0
  114. package/dist/esm/components/db-download-progress.d.ts +1 -1
  115. package/dist/esm/components/db-download-progress.js +1 -1
  116. package/dist/esm/components/db-drawer.js +1 -1
  117. package/dist/esm/components/db-dropdown.d.ts +2 -0
  118. package/dist/esm/components/db-dropdown.js +1 -1
  119. package/dist/esm/components/db-dropzone.js +1 -1
  120. package/dist/esm/components/db-email-verify.d.ts +1 -7
  121. package/dist/esm/components/db-email-verify.js +1 -1
  122. package/dist/esm/components/db-file-uploader.d.ts +10 -0
  123. package/dist/esm/components/db-file-uploader.js +1 -1
  124. package/dist/esm/components/db-filter-bar.d.ts +34 -0
  125. package/dist/esm/components/db-filter-bar.js +1 -0
  126. package/dist/esm/components/db-flight-status.d.ts +33 -0
  127. package/dist/esm/components/db-flight-status.js +1 -0
  128. package/dist/esm/components/db-floating-action-button.d.ts +24 -14
  129. package/dist/esm/components/db-floating-action-button.js +1 -1
  130. package/dist/esm/components/db-footer.d.ts +3 -0
  131. package/dist/esm/components/db-footer.js +1 -1
  132. package/dist/esm/components/db-gantt.js +1 -1
  133. package/dist/esm/components/db-glyph-matrix.d.ts +58 -0
  134. package/dist/esm/components/db-glyph-matrix.js +1 -0
  135. package/dist/esm/components/db-icons.d.ts +1 -1
  136. package/dist/esm/components/db-icons.js +1 -1
  137. package/dist/esm/components/db-image-list.d.ts +2 -0
  138. package/dist/esm/components/db-image-list.js +1 -1
  139. package/dist/esm/components/db-indicator.js +1 -1
  140. package/dist/esm/components/db-input.js +1 -1
  141. package/dist/esm/components/db-kanban.js +1 -1
  142. package/dist/esm/components/db-lightbox.d.ts +4 -0
  143. package/dist/esm/components/db-lightbox.js +1 -1
  144. package/dist/esm/components/db-markdown-editor.js +1 -1
  145. package/dist/esm/components/db-marquee.d.ts +2 -10
  146. package/dist/esm/components/db-marquee.js +1 -1
  147. package/dist/esm/components/db-menu-item.d.ts +2 -0
  148. package/dist/esm/components/db-menu-item.js +1 -1
  149. package/dist/esm/components/db-modal.d.ts +1 -1
  150. package/dist/esm/components/db-modal.js +1 -1
  151. package/dist/esm/components/db-navbar.d.ts +3 -1
  152. package/dist/esm/components/db-navbar.js +1 -1
  153. package/dist/esm/components/db-navigation-rail.d.ts +1 -1
  154. package/dist/esm/components/db-node.d.ts +83 -0
  155. package/dist/esm/components/db-node.js +1 -0
  156. package/dist/esm/components/db-notification-dropdown.d.ts +30 -0
  157. package/dist/esm/components/db-notification-dropdown.js +1 -0
  158. package/dist/esm/components/db-notification-inbox.d.ts +25 -0
  159. package/dist/esm/components/db-notification-inbox.js +1 -0
  160. package/dist/esm/components/db-onboarding-modal.js +1 -1
  161. package/dist/esm/components/db-otp-input.d.ts +1 -1
  162. package/dist/esm/components/db-otp-input.js +1 -1
  163. package/dist/esm/components/db-page-header.d.ts +8 -0
  164. package/dist/esm/components/db-page-header.js +1 -1
  165. package/dist/esm/components/db-pagination.js +1 -1
  166. package/dist/esm/components/db-phone-verify.d.ts +1 -1
  167. package/dist/esm/components/db-phone-verify.js +1 -1
  168. package/dist/esm/components/db-plan-overview.d.ts +26 -0
  169. package/dist/esm/components/db-plan-overview.js +1 -0
  170. package/dist/esm/components/db-popover.js +1 -1
  171. package/dist/esm/components/db-progress-step.js +1 -1
  172. package/dist/esm/components/db-progressive-blur.d.ts +35 -0
  173. package/dist/esm/components/db-progressive-blur.js +1 -0
  174. package/dist/esm/components/db-receipt.d.ts +37 -0
  175. package/dist/esm/components/db-receipt.js +1 -0
  176. package/dist/esm/components/db-resizable-panels.js +1 -1
  177. package/dist/esm/components/db-search-bar.js +1 -1
  178. package/dist/esm/components/db-section-testimonials.d.ts +1 -4
  179. package/dist/esm/components/db-section-testimonials.js +1 -1
  180. package/dist/esm/components/db-segment-control.d.ts +0 -4
  181. package/dist/esm/components/db-segment-control.js +1 -1
  182. package/dist/esm/components/db-select.js +1 -1
  183. package/dist/esm/components/db-share.js +1 -1
  184. package/dist/esm/components/db-sidebar.d.ts +14 -1
  185. package/dist/esm/components/db-sidebar.js +1 -1
  186. package/dist/esm/components/db-split-view.d.ts +2 -0
  187. package/dist/esm/components/db-split-view.js +1 -1
  188. package/dist/esm/components/db-stepper.d.ts +0 -3
  189. package/dist/esm/components/db-stepper.js +1 -1
  190. package/dist/esm/components/db-table.js +1 -1
  191. package/dist/esm/components/db-testimonial.js +1 -1
  192. package/dist/esm/components/db-textarea.js +1 -1
  193. package/dist/esm/components/db-ticket.d.ts +18 -0
  194. package/dist/esm/components/db-ticket.js +1 -0
  195. package/dist/esm/components/db-time-picker.d.ts +1 -1
  196. package/dist/esm/components/db-time-picker.js +1 -1
  197. package/dist/esm/components/db-tool-button.d.ts +57 -0
  198. package/dist/esm/components/db-tool-button.js +1 -0
  199. package/dist/esm/components/db-top-banner.js +1 -1
  200. package/dist/esm/components/db-tutorial.js +1 -1
  201. package/dist/esm/components/db-tweet-card.d.ts +101 -0
  202. package/dist/esm/components/db-tweet-card.js +1 -0
  203. package/dist/esm/components/db-two-factor.d.ts +5 -11
  204. package/dist/esm/components/db-two-factor.js +1 -1
  205. package/dist/esm/components/db-video-player.js +1 -1
  206. package/dist/esm/components/db-voice-control.d.ts +25 -0
  207. package/dist/esm/components/db-voice-control.js +1 -0
  208. package/dist/esm/components/db-workspace-invite-modal.d.ts +51 -0
  209. package/dist/esm/components/db-workspace-invite-modal.js +1 -0
  210. package/dist/esm/components/db-workspace-members.d.ts +36 -0
  211. package/dist/esm/components/db-workspace-members.js +1 -0
  212. package/dist/esm/components/db-youtube-player.js +1 -1
  213. package/dist/esm/components/device-mockup-style.js +1 -0
  214. package/dist/esm/components/flight-route.js +1 -0
  215. package/dist/esm/components/input-validation.js +1 -1
  216. package/dist/esm/components/node-style.js +1 -0
  217. package/dist/esm/components/paper-card.d.ts +26 -0
  218. package/dist/esm/components/paper-card.js +1 -0
  219. package/dist/esm/components/random-gradient-palettes.d.ts +4 -0
  220. package/dist/esm/core/ai-element.d.ts +47 -0
  221. package/dist/esm/core/ai-element.js +1 -0
  222. package/dist/esm/core/credit-ui.js +1 -0
  223. package/dist/esm/core/i18n-copy.js +1 -0
  224. package/dist/esm/core/i18n-en.js +1 -0
  225. package/dist/esm/core/i18n.d.ts +206 -1
  226. package/dist/esm/core/i18n.js +1 -1
  227. package/dist/esm/core/notification-ui.d.ts +17 -0
  228. package/dist/esm/core/notification-ui.js +1 -0
  229. package/dist/esm/helpers/payment-brands.d.ts +56 -0
  230. package/dist/esm/helpers/payment-brands.js +1 -0
  231. package/dist/esm/helpers/toast.d.ts +2 -3
  232. package/dist/esm/index.d.ts +63 -3
  233. package/dist/esm/index.js +1 -1
  234. package/dist/esm/node_modules/@designbasekorea/carousel/dist/chunks/chunk-AGE5BHQ4.js +1 -0
  235. package/dist/esm/node_modules/@designbasekorea/carousel/dist/chunks/chunk-GM4TCAP5.js +1 -0
  236. package/dist/esm/node_modules/@designbasekorea/carousel/dist/chunks/chunk-GSN4JZN7.js +1 -0
  237. package/dist/esm/node_modules/@designbasekorea/carousel/dist/chunks/chunk-VJJVQGV4.js +1 -0
  238. package/dist/esm/node_modules/@designbasekorea/carousel/dist/chunks/chunk-YWLMJGDH.js +1 -0
  239. package/dist/esm/node_modules/@designbasekorea/ui-contracts/dist/components.js +1 -1
  240. package/dist/esm/ui-contracts/dist/components.d.d.ts +76 -0
  241. package/dist/esm/ui-contracts/dist/primitives.d.d.ts +21 -0
  242. package/dist/index.cjs +1 -1
  243. package/dist/index.css +1 -1
  244. package/dist/index.d.ts +2223 -63
  245. package/dist/index.esm.js +1 -1
  246. package/dist/react/index.cjs +1 -1
  247. package/dist/react/index.d.ts +793 -6726
  248. package/dist/react/index.esm.js +1 -1
  249. package/package.json +16 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # 변경 이력
2
2
 
3
+ ## 0.9.2 - 2026-10-24
4
+
5
+ `@designbasekorea/ui-wc` 컴포넌트 패키지 단독 릴리스입니다. 현재 WC/React 컴포넌트와 스타일·타입 선언을 재빌드하며 examples, blocks, 페이지 템플릿은 배포 대상에 포함하지 않습니다.
6
+
7
+ - PageHeader의 sticky·스크롤 압축·격자 배경·count 및 React meta 슬롯 컨트롤 보존 개선 반영.
8
+ - Carousel·ImageList·Lightbox·SectionTestimonials의 공통 Carousel 엔진 연결, Marquee·SectionLogoCloud의 Motion/Ticker 연결과 Indicator progress 지원 반영.
9
+ - 현재 컴포넌트 구현, 공통 유틸리티, React wrapper 및 개별 컴포넌트 진입점의 수정 사항 반영.
10
+ - ESM/CJS, CSS와 TypeScript 선언을 함께 제공하며 전체·React·개별 경로 사용을 배포 패키지 기준으로 검증.
11
+
12
+ ## 0.9.1 - 2026-10-23
13
+
14
+ - PageHeader: `sticky`, `compact-on-scroll`, `background="grid"`, `count` 추가. 스크롤 압축 시 제목·필터를 유지하고 격자 배경을 숨깁니다. `--db-page-header-sticky-offset`으로 상단 앱 바 높이를 지정합니다.
15
+ - PageHeader: React 초기 렌더에서 `meta` 슬롯의 실제 Select 등 컨트롤이 유실되는 문제 수정.
16
+
17
+ - Carousel, ImageList의 carousel 레이아웃, Lightbox, SectionTestimonials의 carousel 변형을 `@designbasekorea/carousel` 엔진으로 통합했습니다.
18
+ - Marquee와 SectionLogoCloud의 흐르는 콘텐츠는 같은 패키지의 Motion/Ticker를 사용합니다. 호버 정지, 여러 행의 교차 방향, 스크롤 속도 연동과 움직임 감소 설정을 유지합니다.
19
+ - Indicator에 외부 재생 진행률을 받는 `progress` 속성을 추가했습니다. Carousel의 자동 재생과 Indicator가 하나의 시계를 공유합니다.
20
+
21
+ ## 0.9.0 - 2026-10-22
22
+
23
+ 컴포넌트 패키지 `@designbasekorea/ui-wc` 단독 릴리스입니다. `@designbasekorea/blocks`, 페이지 템플릿과 갤러리 서비스는 이 npm 배포에 포함하지 않습니다.
24
+
25
+ ### 주요 추가 및 수정
26
+
27
+ - 배포 타입: 전체·개별 컴포넌트·React 경로가 같은 선언을 참조하도록 정리하고, 새 공유 계약 타입을 패키지에 포함해 소비 프로젝트의 중복 전역 선언과 누락된 타입 오류를 수정.
28
+
29
+ - Node: WC/React 노드 표면, 입력·출력 포트, 드래그/키보드 이동·연결 이벤트, 접기·개요 보기, 선택·삭제 요청과 상태 배지. 포인터 캡처가 끊겨도 마지막 위치를 유지하고 Esc만 이동을 취소합니다. 전체 그래프 편집기 예제의 저장·실행 로직은 호스트 앱이 담당합니다.
30
+ - DesignCanvas, DesignToolbar, ContextBar, ToolButton: 디자인 편집 화면을 구성하는 공통 컴포넌트와 React 래퍼.
31
+ - 디바이스 목업, FlightStatus·BoardingPassStack, 음성 입력, 달성 목록·모달 등 신규 컴포넌트.
32
+ - 알림 목록·드롭다운, 작업 공간 멤버·초대, 첨부 파일 목록, 플랜·크레딧 이력과 실행 견적 컴포넌트.
33
+ - BentoGrid·BentoCard, TweetCard, ProgressiveBlur, BorderBeam, Confetti, GlyphMatrix와 React 래퍼.
34
+ - Button·Modal·Drawer·Sidebar·MenuItem·Navbar·Select·Textarea 등 기존 컴포넌트의 상호작용, 접근성, 토큰과 스타일 수정.
35
+ - WC 전체 진입점, React 래퍼와 개별 컴포넌트 import를 제공합니다. 토큰·테마는 기존 설치 방식으로 별도 로드합니다.
36
+
37
+ ### 추가
38
+
39
+ - CreditCard: 가로·세로 카드, 기본·대비·메탈 외형, 클릭·키보드 플립, React 상태 제어와 접근성 지원.
40
+
41
+ - Ticket, BoardingPass, Receipt: 반응형 티켓·탑승권·영수증과 React 래퍼. 절취 형태, 코드 이미지, 안전한 정수 금액 계산, 지역화 및 액션 이벤트 지원.
42
+
43
+ ### 개선
44
+
45
+ - Sidebar: `hideExpandIcon`·`showDepthGuide` 표시 옵션 추가. chevron 없이 카테고리를 열고 닫거나 하위 목록에 세로 가이드를 표시할 수 있습니다.
46
+
47
+ - Sidebar: `children` 기반 2depth 내비게이션에 `expandedIds`·`accordionMode`·`db-expanded-change`/React `onExpandedChange`를 추가. 부모/하위 선택 스타일을 분리하고, 긴 목록 잘림을 제거. MenuItem은 native button과 `aria-expanded`/`aria-controls`, 접힌 하위 항목의 inert 처리, Enter·Space·좌우 방향키를 지원.
48
+
49
+ - 최근32개 모듈 품질 검수: 인스턴스 CSS 간격 변수, 빈 폴더·단계 메타·의미 아이콘, 인용 top layer/닫힘/포커스, Vanilla 대화 append, 첨부 제거 포커스와 긴 멤버 목록의 모바일 배치를 개선. 새 런타임 의존성은 없다.
50
+
51
+ - AI Elements: 18개 WC/React 모듈과 21개 참고 요소 대응 예제. 접이식 작업 추적·출처·승인·계획·실행 결과·대화, 기존 API/URL 유지. [사용 계약](./docs/AI-ELEMENTS.md).
52
+
53
+ - 충전 모달을 라디오 없는 버튼 카드 선택으로 개선. 상품명 스타터/플러스/프로, 카드 내부 추천 배지, 좌측 결제 요약 제거. 기본 Recharge 동작과 controlled 이벤트는 유지.
54
+
55
+ - 모듈형 헤더 크레딧 드롭다운·충전 모달과 실제 앱 조립 example 추가. native Popover 및 기존 Modal의 focus trap/portal을 사용하고 controlled 선택·요약/로딩·오류를 연결.
56
+
57
+ - 크레딧 잔액/예약/사용·충전 선택/결제 진입·AI 작업 상태 Web Components와 React wrapper 추가. 실제 결제·크레딧 지급은 앱/서버가 담당. [연결 안내](./docs/CREDIT-AI.md).
58
+
59
+ ## 0.8.14 - 2026-10-22
60
+
61
+ ### 수정
62
+
63
+ - `db-textarea`: 입력 중 `error`·`error-message` 가 바뀌면(예: 빈 값 제출 후 검증) 입력한 내용이 지워지거나 잘리던 문제 수정. 입력할 때마다 `value` 속성을 실제 값으로 맞춰 둔다.
64
+ - `db-textarea`: 내부 `<textarea>` id 를 `<호스트 id>-field` 로 바꿔 호스트와 id 가 겹치지 않게 하고, 라벨이 실제 입력 필드를 가리키도록 수정.
65
+ - `db-select`: 옵션에 `aria-disabled` 를 명시.
66
+
3
67
  ## 0.8.13 - 2026-10-12
4
68
 
5
69
  ### 개선
@@ -0,0 +1,437 @@
1
+ # Payment brand artwork
2
+
3
+ Source: https://github.com/datatrans/payment-logos (assets/cards), retrieved 2026-10-21.
4
+ Authors: Datatrans Ltd and repository contributors.
5
+ Visa, Mastercard, American Express, Discover, JCB and UnionPay SVG artwork is distributed unchanged in src/assets/payment and encoded as data URLs in src/helpers/payment-brands.ts. The additional Visa and Mastercard cardSrc variants remove the white background rectangle and trim the viewBox; Visa is displayed as a monochrome CSS mask. These adaptations remain under CC BY-SA 4.0.
6
+ License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).
7
+ https://creativecommons.org/licenses/by-sa/4.0/
8
+ Artwork and brand names remain trademarks of their respective owners. This notice concerns the artwork; the rest of the library retains its existing license.
9
+
10
+ Attribution-ShareAlike 4.0 International
11
+
12
+ =======================================================================
13
+
14
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
15
+ does not provide legal services or legal advice. Distribution of
16
+ Creative Commons public licenses does not create a lawyer-client or
17
+ other relationship. Creative Commons makes its licenses and related
18
+ information available on an "as-is" basis. Creative Commons gives no
19
+ warranties regarding its licenses, any material licensed under their
20
+ terms and conditions, or any related information. Creative Commons
21
+ disclaims all liability for damages resulting from their use to the
22
+ fullest extent possible.
23
+
24
+ Using Creative Commons Public Licenses
25
+
26
+ Creative Commons public licenses provide a standard set of terms and
27
+ conditions that creators and other rights holders may use to share
28
+ original works of authorship and other material subject to copyright
29
+ and certain other rights specified in the public license below. The
30
+ following considerations are for informational purposes only, are not
31
+ exhaustive, and do not form part of our licenses.
32
+
33
+ Considerations for licensors: Our public licenses are
34
+ intended for use by those authorized to give the public
35
+ permission to use material in ways otherwise restricted by
36
+ copyright and certain other rights. Our licenses are
37
+ irrevocable. Licensors should read and understand the terms
38
+ and conditions of the license they choose before applying it.
39
+ Licensors should also secure all rights necessary before
40
+ applying our licenses so that the public can reuse the
41
+ material as expected. Licensors should clearly mark any
42
+ material not subject to the license. This includes other CC-
43
+ licensed material, or material used under an exception or
44
+ limitation to copyright. More considerations for licensors:
45
+ wiki.creativecommons.org/Considerations_for_licensors
46
+
47
+ Considerations for the public: By using one of our public
48
+ licenses, a licensor grants the public permission to use the
49
+ licensed material under specified terms and conditions. If
50
+ the licensor's permission is not necessary for any reason--for
51
+ example, because of any applicable exception or limitation to
52
+ copyright--then that use is not regulated by the license. Our
53
+ licenses grant only permissions under copyright and certain
54
+ other rights that a licensor has authority to grant. Use of
55
+ the licensed material may still be restricted for other
56
+ reasons, including because others have copyright or other
57
+ rights in the material. A licensor may make special requests,
58
+ such as asking that all changes be marked or described.
59
+ Although not required by our licenses, you are encouraged to
60
+ respect those requests where reasonable. More_considerations
61
+ for the public:
62
+ wiki.creativecommons.org/Considerations_for_licensees
63
+
64
+ =======================================================================
65
+
66
+ Creative Commons Attribution-ShareAlike 4.0 International Public
67
+ License
68
+
69
+ By exercising the Licensed Rights (defined below), You accept and agree
70
+ to be bound by the terms and conditions of this Creative Commons
71
+ Attribution-ShareAlike 4.0 International Public License ("Public
72
+ License"). To the extent this Public License may be interpreted as a
73
+ contract, You are granted the Licensed Rights in consideration of Your
74
+ acceptance of these terms and conditions, and the Licensor grants You
75
+ such rights in consideration of benefits the Licensor receives from
76
+ making the Licensed Material available under these terms and
77
+ conditions.
78
+
79
+
80
+ Section 1 -- Definitions.
81
+
82
+ a. Adapted Material means material subject to Copyright and Similar
83
+ Rights that is derived from or based upon the Licensed Material
84
+ and in which the Licensed Material is translated, altered,
85
+ arranged, transformed, or otherwise modified in a manner requiring
86
+ permission under the Copyright and Similar Rights held by the
87
+ Licensor. For purposes of this Public License, where the Licensed
88
+ Material is a musical work, performance, or sound recording,
89
+ Adapted Material is always produced where the Licensed Material is
90
+ synched in timed relation with a moving image.
91
+
92
+ b. Adapter's License means the license You apply to Your Copyright
93
+ and Similar Rights in Your contributions to Adapted Material in
94
+ accordance with the terms and conditions of this Public License.
95
+
96
+ c. BY-SA Compatible License means a license listed at
97
+ creativecommons.org/compatiblelicenses, approved by Creative
98
+ Commons as essentially the equivalent of this Public License.
99
+
100
+ d. Copyright and Similar Rights means copyright and/or similar rights
101
+ closely related to copyright including, without limitation,
102
+ performance, broadcast, sound recording, and Sui Generis Database
103
+ Rights, without regard to how the rights are labeled or
104
+ categorized. For purposes of this Public License, the rights
105
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
106
+ Rights.
107
+
108
+ e. Effective Technological Measures means those measures that, in the
109
+ absence of proper authority, may not be circumvented under laws
110
+ fulfilling obligations under Article 11 of the WIPO Copyright
111
+ Treaty adopted on December 20, 1996, and/or similar international
112
+ agreements.
113
+
114
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
115
+ any other exception or limitation to Copyright and Similar Rights
116
+ that applies to Your use of the Licensed Material.
117
+
118
+ g. License Elements means the license attributes listed in the name
119
+ of a Creative Commons Public License. The License Elements of this
120
+ Public License are Attribution and ShareAlike.
121
+
122
+ h. Licensed Material means the artistic or literary work, database,
123
+ or other material to which the Licensor applied this Public
124
+ License.
125
+
126
+ i. Licensed Rights means the rights granted to You subject to the
127
+ terms and conditions of this Public License, which are limited to
128
+ all Copyright and Similar Rights that apply to Your use of the
129
+ Licensed Material and that the Licensor has authority to license.
130
+
131
+ j. Licensor means the individual(s) or entity(ies) granting rights
132
+ under this Public License.
133
+
134
+ k. Share means to provide material to the public by any means or
135
+ process that requires permission under the Licensed Rights, such
136
+ as reproduction, public display, public performance, distribution,
137
+ dissemination, communication, or importation, and to make material
138
+ available to the public including in ways that members of the
139
+ public may access the material from a place and at a time
140
+ individually chosen by them.
141
+
142
+ l. Sui Generis Database Rights means rights other than copyright
143
+ resulting from Directive 96/9/EC of the European Parliament and of
144
+ the Council of 11 March 1996 on the legal protection of databases,
145
+ as amended and/or succeeded, as well as other essentially
146
+ equivalent rights anywhere in the world.
147
+
148
+ m. You means the individual or entity exercising the Licensed Rights
149
+ under this Public License. Your has a corresponding meaning.
150
+
151
+
152
+ Section 2 -- Scope.
153
+
154
+ a. License grant.
155
+
156
+ 1. Subject to the terms and conditions of this Public License,
157
+ the Licensor hereby grants You a worldwide, royalty-free,
158
+ non-sublicensable, non-exclusive, irrevocable license to
159
+ exercise the Licensed Rights in the Licensed Material to:
160
+
161
+ a. reproduce and Share the Licensed Material, in whole or
162
+ in part; and
163
+
164
+ b. produce, reproduce, and Share Adapted Material.
165
+
166
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
167
+ Exceptions and Limitations apply to Your use, this Public
168
+ License does not apply, and You do not need to comply with
169
+ its terms and conditions.
170
+
171
+ 3. Term. The term of this Public License is specified in Section
172
+ 6(a).
173
+
174
+ 4. Media and formats; technical modifications allowed. The
175
+ Licensor authorizes You to exercise the Licensed Rights in
176
+ all media and formats whether now known or hereafter created,
177
+ and to make technical modifications necessary to do so. The
178
+ Licensor waives and/or agrees not to assert any right or
179
+ authority to forbid You from making technical modifications
180
+ necessary to exercise the Licensed Rights, including
181
+ technical modifications necessary to circumvent Effective
182
+ Technological Measures. For purposes of this Public License,
183
+ simply making modifications authorized by this Section 2(a)
184
+ (4) never produces Adapted Material.
185
+
186
+ 5. Downstream recipients.
187
+
188
+ a. Offer from the Licensor -- Licensed Material. Every
189
+ recipient of the Licensed Material automatically
190
+ receives an offer from the Licensor to exercise the
191
+ Licensed Rights under the terms and conditions of this
192
+ Public License.
193
+
194
+ b. Additional offer from the Licensor -- Adapted Material.
195
+ Every recipient of Adapted Material from You
196
+ automatically receives an offer from the Licensor to
197
+ exercise the Licensed Rights in the Adapted Material
198
+ under the conditions of the Adapter's License You apply.
199
+
200
+ c. No downstream restrictions. You may not offer or impose
201
+ any additional or different terms or conditions on, or
202
+ apply any Effective Technological Measures to, the
203
+ Licensed Material if doing so restricts exercise of the
204
+ Licensed Rights by any recipient of the Licensed
205
+ Material.
206
+
207
+ 6. No endorsement. Nothing in this Public License constitutes or
208
+ may be construed as permission to assert or imply that You
209
+ are, or that Your use of the Licensed Material is, connected
210
+ with, or sponsored, endorsed, or granted official status by,
211
+ the Licensor or others designated to receive attribution as
212
+ provided in Section 3(a)(1)(A)(i).
213
+
214
+ b. Other rights.
215
+
216
+ 1. Moral rights, such as the right of integrity, are not
217
+ licensed under this Public License, nor are publicity,
218
+ privacy, and/or other similar personality rights; however, to
219
+ the extent possible, the Licensor waives and/or agrees not to
220
+ assert any such rights held by the Licensor to the limited
221
+ extent necessary to allow You to exercise the Licensed
222
+ Rights, but not otherwise.
223
+
224
+ 2. Patent and trademark rights are not licensed under this
225
+ Public License.
226
+
227
+ 3. To the extent possible, the Licensor waives any right to
228
+ collect royalties from You for the exercise of the Licensed
229
+ Rights, whether directly or through a collecting society
230
+ under any voluntary or waivable statutory or compulsory
231
+ licensing scheme. In all other cases the Licensor expressly
232
+ reserves any right to collect such royalties.
233
+
234
+
235
+ Section 3 -- License Conditions.
236
+
237
+ Your exercise of the Licensed Rights is expressly made subject to the
238
+ following conditions.
239
+
240
+ a. Attribution.
241
+
242
+ 1. If You Share the Licensed Material (including in modified
243
+ form), You must:
244
+
245
+ a. retain the following if it is supplied by the Licensor
246
+ with the Licensed Material:
247
+
248
+ i. identification of the creator(s) of the Licensed
249
+ Material and any others designated to receive
250
+ attribution, in any reasonable manner requested by
251
+ the Licensor (including by pseudonym if
252
+ designated);
253
+
254
+ ii. a copyright notice;
255
+
256
+ iii. a notice that refers to this Public License;
257
+
258
+ iv. a notice that refers to the disclaimer of
259
+ warranties;
260
+
261
+ v. a URI or hyperlink to the Licensed Material to the
262
+ extent reasonably practicable;
263
+
264
+ b. indicate if You modified the Licensed Material and
265
+ retain an indication of any previous modifications; and
266
+
267
+ c. indicate the Licensed Material is licensed under this
268
+ Public License, and include the text of, or the URI or
269
+ hyperlink to, this Public License.
270
+
271
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
272
+ reasonable manner based on the medium, means, and context in
273
+ which You Share the Licensed Material. For example, it may be
274
+ reasonable to satisfy the conditions by providing a URI or
275
+ hyperlink to a resource that includes the required
276
+ information.
277
+
278
+ 3. If requested by the Licensor, You must remove any of the
279
+ information required by Section 3(a)(1)(A) to the extent
280
+ reasonably practicable.
281
+
282
+ b. ShareAlike.
283
+
284
+ In addition to the conditions in Section 3(a), if You Share
285
+ Adapted Material You produce, the following conditions also apply.
286
+
287
+ 1. The Adapter's License You apply must be a Creative Commons
288
+ license with the same License Elements, this version or
289
+ later, or a BY-SA Compatible License.
290
+
291
+ 2. You must include the text of, or the URI or hyperlink to, the
292
+ Adapter's License You apply. You may satisfy this condition
293
+ in any reasonable manner based on the medium, means, and
294
+ context in which You Share Adapted Material.
295
+
296
+ 3. You may not offer or impose any additional or different terms
297
+ or conditions on, or apply any Effective Technological
298
+ Measures to, Adapted Material that restrict exercise of the
299
+ rights granted under the Adapter's License You apply.
300
+
301
+
302
+ Section 4 -- Sui Generis Database Rights.
303
+
304
+ Where the Licensed Rights include Sui Generis Database Rights that
305
+ apply to Your use of the Licensed Material:
306
+
307
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
308
+ to extract, reuse, reproduce, and Share all or a substantial
309
+ portion of the contents of the database;
310
+
311
+ b. if You include all or a substantial portion of the database
312
+ contents in a database in which You have Sui Generis Database
313
+ Rights, then the database in which You have Sui Generis Database
314
+ Rights (but not its individual contents) is Adapted Material,
315
+
316
+ including for purposes of Section 3(b); and
317
+ c. You must comply with the conditions in Section 3(a) if You Share
318
+ all or a substantial portion of the contents of the database.
319
+
320
+ For the avoidance of doubt, this Section 4 supplements and does not
321
+ replace Your obligations under this Public License where the Licensed
322
+ Rights include other Copyright and Similar Rights.
323
+
324
+
325
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
326
+
327
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
328
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
329
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
330
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
331
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
332
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
333
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
334
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
335
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
336
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
337
+
338
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
339
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
340
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
341
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
342
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
343
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
344
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
345
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
346
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
347
+
348
+ c. The disclaimer of warranties and limitation of liability provided
349
+ above shall be interpreted in a manner that, to the extent
350
+ possible, most closely approximates an absolute disclaimer and
351
+ waiver of all liability.
352
+
353
+
354
+ Section 6 -- Term and Termination.
355
+
356
+ a. This Public License applies for the term of the Copyright and
357
+ Similar Rights licensed here. However, if You fail to comply with
358
+ this Public License, then Your rights under this Public License
359
+ terminate automatically.
360
+
361
+ b. Where Your right to use the Licensed Material has terminated under
362
+ Section 6(a), it reinstates:
363
+
364
+ 1. automatically as of the date the violation is cured, provided
365
+ it is cured within 30 days of Your discovery of the
366
+ violation; or
367
+
368
+ 2. upon express reinstatement by the Licensor.
369
+
370
+ For the avoidance of doubt, this Section 6(b) does not affect any
371
+ right the Licensor may have to seek remedies for Your violations
372
+ of this Public License.
373
+
374
+ c. For the avoidance of doubt, the Licensor may also offer the
375
+ Licensed Material under separate terms or conditions or stop
376
+ distributing the Licensed Material at any time; however, doing so
377
+ will not terminate this Public License.
378
+
379
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
380
+ License.
381
+
382
+
383
+ Section 7 -- Other Terms and Conditions.
384
+
385
+ a. The Licensor shall not be bound by any additional or different
386
+ terms or conditions communicated by You unless expressly agreed.
387
+
388
+ b. Any arrangements, understandings, or agreements regarding the
389
+ Licensed Material not stated herein are separate from and
390
+ independent of the terms and conditions of this Public License.
391
+
392
+
393
+ Section 8 -- Interpretation.
394
+
395
+ a. For the avoidance of doubt, this Public License does not, and
396
+ shall not be interpreted to, reduce, limit, restrict, or impose
397
+ conditions on any use of the Licensed Material that could lawfully
398
+ be made without permission under this Public License.
399
+
400
+ b. To the extent possible, if any provision of this Public License is
401
+ deemed unenforceable, it shall be automatically reformed to the
402
+ minimum extent necessary to make it enforceable. If the provision
403
+ cannot be reformed, it shall be severed from this Public License
404
+ without affecting the enforceability of the remaining terms and
405
+ conditions.
406
+
407
+ c. No term or condition of this Public License will be waived and no
408
+ failure to comply consented to unless expressly agreed to by the
409
+ Licensor.
410
+
411
+ d. Nothing in this Public License constitutes or may be interpreted
412
+ as a limitation upon, or waiver of, any privileges and immunities
413
+ that apply to the Licensor or You, including from the legal
414
+ processes of any jurisdiction or authority.
415
+
416
+
417
+ =======================================================================
418
+
419
+ Creative Commons is not a party to its public
420
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
421
+ its public licenses to material it publishes and in those instances
422
+ will be considered the “Licensor.” The text of the Creative Commons
423
+ public licenses is dedicated to the public domain under the CC0 Public
424
+ Domain Dedication. Except for the limited purpose of indicating that
425
+ material is shared under a Creative Commons public license or as
426
+ otherwise permitted by the Creative Commons policies published at
427
+ creativecommons.org/policies, Creative Commons does not authorize the
428
+ use of the trademark "Creative Commons" or any other trademark or logo
429
+ of Creative Commons without its prior written consent including,
430
+ without limitation, in connection with any unauthorized modifications
431
+ to any of its public licenses or any other arrangements,
432
+ understandings, or agreements concerning use of licensed material. For
433
+ the avoidance of doubt, this paragraph does not form part of the
434
+ public licenses.
435
+
436
+ Creative Commons may be contacted at creativecommons.org.
437
+
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # @designbasekorea/ui-wc
1
+ # Supernormal Web Components
2
2
 
3
- Designbase **Web Components** — Vue 3, Angular, React, vanilla HTML에서 공통으로 사용하는 웹 컴포넌트 라이브러리입니다.
3
+ Supernormal(슈퍼노말), by Designbase. **Web Components** — Vue 3, Angular, React, vanilla HTML에서 공통으로 사용하는 웹 컴포넌트 라이브러리입니다.
4
4
 
5
- 100여 개의 커스텀 엘리먼트를 제공하며, React 전용 wrapper(`@designbasekorea/ui-wc/react`)도 포함합니다.
5
+ 커스텀 엘리먼트를 제공하며, React 전용 wrapper(`@designbasekorea/ui-wc/react`)도 포함합니다.
6
6
 
7
7
  ### 품질 규격
8
8
 
@@ -22,6 +22,10 @@ npm run audit:axe # axe-core 런타임 접근성 검증 (build 선행 필
22
22
  npm run verify:docs # 문서 ↔ 구현 정합성
23
23
  ```
24
24
 
25
+ ## 크레딧·충전·AI 작업 UI
26
+
27
+ `CreditBalance`, `CreditRecharge`, `AiTaskStatus`, `CreditDropdown`, `CreditRechargeModal`의 Web Component/React API와 서버 연결 경계는 [사용 안내](./docs/CREDIT-AI.md)를 따릅니다. 0.9.x 배포에 포함된 컴포넌트입니다.
28
+
25
29
  ## 최근 변경
26
30
 
27
31
  버전별 변경 내용은 [CHANGELOG.md](./CHANGELOG.md) 를 참고하세요.
@@ -183,6 +187,33 @@ property setter를 지원하는 컴포넌트: `db-tabs`, `db-navbar`, `db-sideba
183
187
 
184
188
  ---
185
189
 
190
+ ## Sidebar 2depth · 아코디언
191
+
192
+ `sections[].items[].children`에 하위 항목을 넣으면 부모 아래에 들여쓴 2depth 목록이 펼쳐집니다. 부모 클릭은 열기/닫기, 하위 클릭은 기존 `db-item-click` 이벤트를 전달합니다. 라우팅은 앱에서 연결합니다.
193
+
194
+ - `accordion-mode="single"` (기본): 한 그룹씩 열기. `multiple`: 여러 그룹 열기.
195
+ - `hide-expand-icon` / React `hideExpandIcon`: chevron 숨김. 펼침 상태의 ARIA와 키보드 동작은 유지됩니다.
196
+ - `show-depth-guide` / React `showDepthGuide`: 하위 목록 왼쪽에 의미 토큰 기반 세로 가이드 표시. 두 옵션은 기본적으로 꺼져 있습니다.
197
+ - `default-expanded-ids`: 초기 그룹 ID의 JSON 배열.
198
+ - `expanded-ids` / `expandedIds`: 현재 펼침 상태를 외부에서 지정하는 배열/JSON. 선택된 `active` 항목과 독립적입니다.
199
+ - `db-expanded-change`: `{ itemId, expanded, expandedIds }`. 사용자 조작 시 한 번 발생합니다. 속성으로 상태를 지정할 때는 발생하지 않습니다.
200
+ - Enter·Space로 열기/닫기, →로 열기, ←로 닫기. 닫힌 하위 목록은 키보드와 접근성 탐색에서 제외됩니다. 열린 목록은 고정 높이로 잘리지 않습니다.
201
+
202
+ ```tsx
203
+ const [expandedIds, setExpandedIds] = useState(['form']);
204
+ <Sidebar
205
+ sections={[{ id: 'library', items: [{ id: 'form', label: 'Form', children: [
206
+ { id: 'button', label: 'Button' }, { id: 'input', label: 'Input', active: true },
207
+ ] }] }]}
208
+ accordionMode="single"
209
+ expandedIds={expandedIds}
210
+ onExpandedChange={event => setExpandedIds(event.detail.expandedIds)}
211
+ onItemClick={event => navigate(`/components/${event.detail.item.id}`)}
212
+ />
213
+ ```
214
+
215
+ 자체적으로 HTML 아코디언을 중복 구현할 필요가 없습니다. 앱은 메뉴 데이터·선택·라우팅을 맡고 Sidebar는 2depth 표현·펼침·키보드 동작을 담당합니다.
216
+
186
217
  ## Sidebar 커스텀 내비게이션
187
218
 
188
219
  `db-sidebar`의 메인 영역에는 데이터 기반 `items`·`sections`와 함께 커스텀 콘텐츠를 넣을 수 있습니다.
@@ -482,3 +513,36 @@ import { NavigationRail } from '@designbasekorea/ui-wc/react';
482
513
  ```
483
514
 
484
515
  툴팁을 직접 구성할 때 `db-tooltip focus-target="child"`를 지정하면 내부 버튼/링크에 포커스를 유지하고 wrapper의 추가 Tab 정지를 없앱니다.
516
+
517
+ AI 대화·작업 과정·출처·도구 결과는 [AI Elements](./docs/AI-ELEMENTS.md)를 참고하세요.
518
+
519
+ ### 티켓 · 탑승권 · 영수증
520
+
521
+ `db-ticket` / `Ticket`, `db-boarding-pass` / `BoardingPass`, `db-receipt` / `Receipt`를 제공합니다. 객체 데이터, container query 기반 반응형 배치, 절취 모양, 실제 코드 이미지, 지역화와 정수 금액 계산을 지원합니다. [사용법과 데이터 계약](docs/PAPER-CARDS.md)을 참고하세요.
522
+
523
+ ### 신용카드 표시
524
+
525
+ `db-credit-card` / `CreditCard`: 가로·세로 비율, 클릭·키보드 앞뒷면 전환, 상태 제어와 동작 줄이기 설정을 지원합니다. [데이터 API와 사용법](docs/CREDIT-CARD.md)을 참고하세요.
526
+
527
+
528
+ ## 컴포넌트 패키지만 배포
529
+
530
+ 저장소 루트에서 `npm run ui-wc:build`로 공유 계약과 ui-wc만 빌드하고, `npm run publish:ui-wc`로 `@designbasekorea/ui-wc`만 npm에 배포합니다. 이 명령은 blocks·템플릿·갤러리를 배포하지 않습니다. 갤러리 전체 빌드는 `npm run example:gallery:build`가 blocks 빌드를 별도로 실행합니다.
531
+
532
+ npm 배포물에는 ui-wc의 `dist`, README·변경 이력과 결제 로고 라이선스 고지만 포함됩니다. 신규 컴포넌트는 전체 진입점·React 래퍼·개별 import에서 사용할 수 있습니다. 결제·초대·AI 요청·저장 같은 실제 서버 동작은 소비 앱에서 연결합니다.
533
+
534
+ ### 스크롤하면 작아지는 페이지 헤더
535
+
536
+ ```tsx
537
+ import { PageHeader, Select, SegmentControl, Sidebar } from '@designbasekorea/ui-wc/react';
538
+
539
+ <PageHeader title="전체 블록" count={80} description="필요한 블록을 찾아보세요."
540
+ variant="minimal" background="grid" sticky compactOnScroll>
541
+ <Select slot="meta" value="all" options={categories} onChange={onCategoryChange} />
542
+ <SegmentControl slot="actions" value="all" options={tiers} onChange={onTierChange} />
543
+ </PageHeader>
544
+
545
+ <Sidebar type="navigation" sections={sections} />
546
+ ```
547
+
548
+ `sticky`는 가장 가까운 스크롤 영역의 상단에 고정합니다. `compactOnScroll`은 원래 위치를 지나면 설명과 격자를 숨기고 제목·개수·컨트롤을 유지합니다. 상단 앱 바가 있으면 헤더의 `--db-page-header-sticky-offset`에 해당 높이(예: `64px`)를 지정하세요. 별도 자바스크립트 스크롤 핸들러는 필요하지 않습니다. `Sidebar`의 `navigation` 타입은 문서·페이지 탐색에 사용합니다.
@@ -1 +1 @@
1
- const startOfDay=t=>{const e=new Date(t);return e.setHours(0,0,0,0),e},endOfDay=t=>{const e=new Date(t);return e.setHours(23,59,59,999),e},addDays=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),startOfDay(n)},getMonthEnd=t=>endOfDay(new Date(t.getFullYear(),t.getMonth()+1,0)),getYearEnd=t=>endOfDay(new Date(t.getFullYear(),11,31)),clampRange=(t,e,n)=>{let{start:a,end:r}=t;return e&&a<e&&(a=startOfDay(e)),n&&r>n&&(r=endOfDay(n)),a>r?{start:r,end:a}:{start:a,end:r}},t=[{id:"today",label:"오늘",getRange:({today:t})=>clampRange({start:startOfDay(t),end:endOfDay(t)})},{id:"yesterday",label:"어제",getRange:({today:t})=>{const e=addDays(t,-1);return clampRange({start:e,end:endOfDay(e)})}},{id:"this-week",label:"이번 주",getRange:({today:t,startOfWeek:e,minDate:n,maxDate:a})=>{const r=((t,e)=>{const n=t.getDay();return addDays(t,-("monday"===e?(n+6)%7:n))})(t,e);return clampRange({start:r,end:(o=r,endOfDay(addDays(o,6)))},n,a);var o}},{id:"this-month",label:"이번 달",getRange:({today:t,minDate:e,maxDate:n})=>{return clampRange({start:(a=t,startOfDay(new Date(a.getFullYear(),a.getMonth(),1))),end:getMonthEnd(t)},e,n);var a}},{id:"this-year",label:"올해",getRange:({today:t,minDate:e,maxDate:n})=>{return clampRange({start:(a=t,startOfDay(new Date(a.getFullYear(),0,1))),end:getYearEnd(t)},e,n);var a}},{id:"custom",label:"사용자 지정",getRange:()=>null}],addMonths=(t,e)=>{const n=new Date(t);return n.setDate(1),n.setMonth(n.getMonth()+e),n},toISODate=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,parseISODate=t=>{if(!t)return null;const e=t.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e)return null;const n=new Date(Number(e[1]),Number(e[2])-1,Number(e[3]));return Number.isNaN(n.getTime())?null:startOfDay(n)},formatDisplayDate=(t,e="ko-KR")=>t.toLocaleDateString(e),generateWeekdays=t=>{const e=["일","월","화","수","목","금","토"];return"monday"===t&&e.push(e.shift()),e},generateCalendarGrid=(t,e,n=!1)=>{const a=t.getFullYear(),r=t.getMonth(),o=new Date(a,r,1),s="monday"===e?(o.getDay()+6)%7:o.getDay();if(n){const t=[];for(let e=0;e<s;e+=1)t.push(null);const e=new Date(a,r+1,0).getDate();for(let n=1;n<=e;n+=1)t.push(new Date(a,r,n));return t}const u=new Date(o);return u.setDate(u.getDate()-s),Array.from({length:42},(t,e)=>{const n=new Date(u);return n.setDate(u.getDate()+e),n})},detectActivePresetId=(t,e,n)=>{if(!t)return"custom";const a=t.start.toDateString(),r=t.end.toDateString();for(const t of e){if("custom"===t.id)continue;const e=t.getRange(n);if(e&&(e.start.toDateString()===a&&e.end.toDateString()===r))return t.id}return"custom"},formatPanelInputDate=(t,e)=>t?t.toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric"}):"";export{t as DEFAULT_DATE_PICKER_PRESETS,addMonths,detectActivePresetId,endOfDay,formatDisplayDate,formatPanelInputDate,generateCalendarGrid,generateWeekdays,parseISODate,startOfDay,toISODate};
1
+ import{dbText as t,getDbLocale as e}from"../core/i18n.js";const startOfDay=t=>{const e=new Date(t);return e.setHours(0,0,0,0),e},endOfDay=t=>{const e=new Date(t);return e.setHours(23,59,59,999),e},addDays=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),startOfDay(n)},getMonthEnd=t=>endOfDay(new Date(t.getFullYear(),t.getMonth()+1,0)),getYearEnd=t=>endOfDay(new Date(t.getFullYear(),11,31)),clampRange=(t,e,n)=>{let{start:a,end:r}=t;return e&&a<e&&(a=startOfDay(e)),n&&r>n&&(r=endOfDay(n)),a>r?{start:r,end:a}:{start:a,end:r}},n=[{id:"today",label:t("오늘"),getRange:({today:t})=>clampRange({start:startOfDay(t),end:endOfDay(t)})},{id:"yesterday",label:t("어제"),getRange:({today:t})=>{const e=addDays(t,-1);return clampRange({start:e,end:endOfDay(e)})}},{id:"this-week",label:t("이번 주"),getRange:({today:t,startOfWeek:e,minDate:n,maxDate:a})=>{const r=((t,e)=>{const n=t.getDay();return addDays(t,-("monday"===e?(n+6)%7:n))})(t,e);return clampRange({start:r,end:(o=r,endOfDay(addDays(o,6)))},n,a);var o}},{id:"this-month",label:t("이번 달"),getRange:({today:t,minDate:e,maxDate:n})=>{return clampRange({start:(a=t,startOfDay(new Date(a.getFullYear(),a.getMonth(),1))),end:getMonthEnd(t)},e,n);var a}},{id:"this-year",label:t("올해"),getRange:({today:t,minDate:e,maxDate:n})=>{return clampRange({start:(a=t,startOfDay(new Date(a.getFullYear(),0,1))),end:getYearEnd(t)},e,n);var a}},{id:"custom",label:t("사용자 지정"),getRange:()=>null}],addMonths=(t,e)=>{const n=new Date(t);return n.setDate(1),n.setMonth(n.getMonth()+e),n},toISODate=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,parseISODate=t=>{if(!t)return null;const e=t.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e)return null;const n=new Date(Number(e[1]),Number(e[2])-1,Number(e[3]));return Number.isNaN(n.getTime())?null:startOfDay(n)},formatDisplayDate=(t,n=("ko"===e()?"ko-KR":"en-US"))=>t.toLocaleDateString(n),generateWeekdays=(t,n=("ko"===e()?"ko-KR":"en-US"))=>{const a=Array.from({length:7},(t,e)=>new Intl.DateTimeFormat(n,{weekday:"short"}).format(new Date(2026,0,4+e)));return"monday"===t&&a.push(a.shift()),a},generateCalendarGrid=(t,e,n=!1)=>{const a=t.getFullYear(),r=t.getMonth(),o=new Date(a,r,1),s="monday"===e?(o.getDay()+6)%7:o.getDay();if(n){const t=[];for(let e=0;e<s;e+=1)t.push(null);const e=new Date(a,r+1,0).getDate();for(let n=1;n<=e;n+=1)t.push(new Date(a,r,n));return t}const u=new Date(o);return u.setDate(u.getDate()-s),Array.from({length:42},(t,e)=>{const n=new Date(u);return n.setDate(u.getDate()+e),n})},detectActivePresetId=(t,e,n)=>{if(!t)return"custom";const a=t.start.toDateString(),r=t.end.toDateString();for(const t of e){if("custom"===t.id)continue;const e=t.getRange(n);if(e&&(e.start.toDateString()===a&&e.end.toDateString()===r))return t.id}return"custom"},formatPanelInputDate=(t,e)=>t?t.toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric"}):"";export{n as DEFAULT_DATE_PICKER_PRESETS,addMonths,detectActivePresetId,endOfDay,formatDisplayDate,formatPanelInputDate,generateCalendarGrid,generateWeekdays,parseISODate,startOfDay,toISODate};